<template>
	<view>
		<view class="main">
			<view class="top-bar">
				<view class="map">
					<image src="../../static/images/icon_04.png" class="ico" mode="widthFix"></image>地图
				</view>
				<view class="search">
					<image src="../../static/images/icon_05.png" class="ico" mode="widthFix"></image>
					<input type="text" class="ipt ipt-txt" placeholder="请输入关键词搜索" />
				</view>
			</view>
			<view class="banner">
				<image src="../../static/images/img_01.png" class="img" mode="widthFix"></image>
			</view>
			<view class="list">
				<view class="item" v-for="item in 2">
					<view class="flex flex-align-center">
						<view class="title flex-1 ellipsis">佛山大良保利广场充电站</view>
						<view class="km">
							<image src="../../static/images/icon_03.png" class="ico" mode="widthFix"></image>0.5km
						</view>
					</view>
					<view class="font">
						地上 | 可用充电余额
					</view>
					<view class="flex flex-align-center flex-pack-justify">
						<view class="ds">
							<text class="wz1">￥</text>
							<text class="wz2">1.53</text> /度
						</view>
						<view class="zt">
							<image src="../../static/images/icon_01.png" class="ico" mode="widthFix"></image>
							<view class="wz">闲3<text>/5</text></view>
						</view>
					</view>
					<view class="flex">
						<view class="bh">
							<text class="wz1">编号</text>
							<text class="wz2">CDZ00001</text>
						</view>
					</view>
					<view class="tip">
						<image src="../../static/images/icon_02.png" class="icon" mode="widthFix"></image>
						超时占用费0.1元/分钟
					</view>
				</view>
			</view>
		</view>
		<Tabbar :current="0"></Tabbar>
	</view>
</template>

<script>
	import Tabbar from "@/batteryCharging/components/tabbar/tabbar.vue"
	export default {
		data() {
			return {

			}
		},
		components: {
			Tabbar
		},
		onShow() {

		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	@import url(@/batteryCharging/static/css/common.scss);

	.main {
		padding: 20rpx;
	}

	.top-bar {
		display: flex;
		margin-bottom: 20rpx;

		.map {
			font-size: 22rpx;
			color: #535E71;
			font-weight: 700;
			width: 140rpx;
			height: 72rpx;
			padding: 8rpx;
			background-color: #fff;
			border-radius: 200rpx;
			margin-right: 20rpx;
			display: flex;
			align-items: center;

			.ico {
				width: 58rpx;
				height: 58rpx;
				margin-right: 9rpx;
			}
		}

		.search {
			flex: 1;
			overflow: hidden;
			display: flex;
			align-items: center;
			padding: 0 25rpx;
			background-color: #fff;
			border-radius: 200rpx;

			.ico {
				width: 24rpx;
				height: 24rpx;
				margin-right: 14rpx;
			}

			.ipt-txt {
				background-color: #fff;
				font-size: 26rpx;
				line-height: 72rpx;
				height: 72rpx;
				width: 100%;
			}

		}
	}

	.banner {
		margin-bottom: 20rpx;
	}

	.list {
		.item {
			background-color: #fff;
			border-radius: 20rpx;
			margin-bottom: 20rpx;
			padding: 25rpx;

			.title {
				font-size: 32rpx;
				color: #262626;
				font-weight: 700;
			}

			.km {
				font-size: 22rpx;
				color: #74737A;
				line-height: 46rpx;
				min-width: 124rpx;
				text-align: center;
				padding: 0 20rpx;
				border: 1px solid #F1F1F1;
				border-radius: 200rpx;
				margin-left: 40rpx;

				.ico {
					width: 14rpx;
					height: 14rpx;
					margin-right: 8rpx;
					display: inline-block;
					vertical-align: middle;
				}
			}

			.font {
				font-size: 24rpx;
				color: #808080;
				margin-top: 10rpx;
			}

			.ds {
				color: #FE5E10;
				font-size: 20rpx;

				.wz1 {
					font-size: 26rpx;
					font-weight: 700;
				}

				.wz2 {
					font-size: 46rpx;
					font-weight: 700;
				}
			}

			.zt {
				.ico {
					width: 40rpx;
					height: 40rpx;
					margin-right: 10rpx;
					display: inline-block;
					vertical-align: middle;
					position: relative;
					z-index: 2;
				}

				.wz {
					background: #FFF7F2;
					padding: 0 12rpx 0 28rpx;
					margin-left: -20rpx;
					border-radius: 4rpx;
					display: inline-block;
					vertical-align: middle;
					font-size: 26rpx;
					color: #FE5E10;
					font-weight: 700;
					line-height: 40rpx;

					text {
						color: #FFA86E;
					}
				}
			}

			.bh {
				margin-top: 10rpx;
				overflow: hidden;
				display: flex;

				.wz1 {
					font-size: 22rpx;
					font-weight: 700;
					color: #fff;
					width: 66rpx;
					height: 36rpx;
					text-align: center;
					line-height: 36rpx;
					background: linear-gradient(90deg, #FF864A 0%, #F93701 100%);
					border-radius: 4rpx;
					position: relative;
					z-index: 2;
				}

				.wz2 {
					font-size: 24rpx;
					color: #FE5E10;
					padding: 0 15rpx 0 25rpx;
					margin-left: -10rpx;
					line-height: 30rpx;
					border: 1rpx solid #FE5E10;
					border-radius: 4rpx;
				}
			}

			.tip {
				font-size: 22rpx;
				color: #77777A;
				width: 400rpx;
				display: flex;
				align-items: center;
				background: linear-gradient(90deg, #FAFAFA 0%, #FEFEFE 100%);
				margin-top: 20rpx;

				.icon {
					width: 38rpx;
					margin-right: 20rpx;
				}
			}

		}
	}
</style>